﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace Splittergame
{
    class Ball
    {
        public float ballRadius = 0.1f;
        Vector2 ballposition;
        public Vector2 ballSpeed = new Vector2(1.9f, 1.95f);

        public Ball(int seed)
        {
            Random rand = new Random(seed);
            float maxPos = 9;
            float minPos = 1;

            ballposition = new Vector2((float)rand.NextDouble() * (maxPos - minPos), (float)rand.NextDouble() * (maxPos - minPos));

        }
        public Vector2 getBallPosition()
        {
            return ballposition;
        }
        public void setBallPosition(float m_x, float m_y)
        {
            ballposition.X = m_x;
            ballposition.Y = m_y;          
        }       
    }
}
